package com.hera.process.config.dao;


import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.hera.base.dao.repository.BaseRepository;
import com.hera.process.workflow.domain.TaskUser;

public interface TaskUserDao extends BaseRepository<TaskUser, Long> {
	@Query
	("select o from TaskUser o where o.user.idUser in ?1")
	List<TaskUser> findBandejaUsuario(List codigos);
	@Query
	("select o.idUser from User o where o.boss.idUser=?1")
	List<Long> obtenerCodigosUsuarioCargo(Long codigoJefe);
	

}
